Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 08:00 am EST
Geeklog Forums
Stories By Topic Block
Page navigation
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
point me to the script and i'll see about it for you...
26
27
Quote
noob
Anonymous
21
21
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
here ya go... I inserted the option to enable or disable the intro as well as the ability to limit the intro to a number of characters (an extra if/else would do if you want to disable the char count altogether).
HTH, untested
edit... posted the code but stripped some stuff so i'll give a link, hang on
edit... modified file here. Let me know if it doesn't do what you want.
HTH, untested
edit... posted the code but stripped some stuff so i'll give a link, hang on
edit... modified file here. Let me know if it doesn't do what you want.
26
25
Quote
noob
Anonymous
First - well done on the double-quick work.
Second - I'm trying hard here - i've got to the point where i have the titles then a space ( in the code), so something's trying to get through but it's just not making it.
i'm going to stare at this puppy for a while and see if i can see anything - any help above and beynd what yo've already done would be great.
thanks
Second - I'm trying hard here - i've got to the point where i have the titles then a space ( in the code), so something's trying to get through but it's just not making it.
i'm going to stare at this puppy for a while and see if i can see anything - any help above and beynd what yo've already done would be great.
thanks
22
22
Quote
noob
Anonymous
Crikey! Also, when i change the headline length to something ridiculous it doesn't reflect in the page. i've refreshed and refreshed but none of my changes take place. maybe i'm just doing something totally and utterly wrong....
d'oh!
d'oh!
23
27
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
start with this... neglected to put var 5 and 6 into the first call to displaystories() at about line 818 make it look like this:
now i'll test it and see if it works
Text Formatted Code
$display .= displayStories($merge_title, $sql, $merge_topics, $max_title_length, $intro, $max_intro_length);
21
20
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
k, I did it and it works now... sorry, but that's what happens when I'm playing CS at the same time as coding on another monitor
couple minutes and I'll put up the tarball.
couple minutes and I'll put up the tarball.
19
24
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
25
23
Quote
noob
Anonymous
hmmm, i don't know. i've tried the new script and messed about a bit myself but still can't get it to work properly. i still have where the intro should be.
20
23
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
my cache issue, sorry..
try now
try now
20
27
Quote
noob
Anonymous
Whoah! You did it!
I just downloaded it, installed it and it worked first time. Like a dream.
Thanks for all your help. This block is now complete. I suggest everyone replaces their old block with this new, improved version.
Well done.
I just downloaded it, installed it and it worked first time. Like a dream.
Thanks for all your help. This block is now complete. I suggest everyone replaces their old block with this new, improved version.
Well done.
27
27
Quote
Status: offline
beewee
Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
A simple way of improving the search engine optimization if you use the URL rewrite function, change this:
in:
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
Text Formatted Code
$display .= '<a href="' . $_CONF['site_url'] . '/article.php?story=' . $sid . '">' . $story_title . '</a><br>';in:
Text Formatted Code
$display .= '<a href="' . $_CONF['site_url'] . '/article.php/' . $sid . '">' . $story_title . '</a><br>';Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
19
18
Quote
Status: offline
drshakagee
Forum User
Full Member
Registered: 10/01/03
Posts: 231
A more universal approach would be to use the COM_buildURL function to create the proper rewritten url, that way it works for people who have rewriting turned off as well:
$properurl = COM_buildURL($_CONF['site_url'] . '/article.php?story=' . $sid);
$display .= '<a href="' . $properurl . '">' . $story_title . '</a><br>';
I didn't really test it but I believe that should work fine.
Yes I am mental.
Text Formatted Code
$properurl = COM_buildURL($_CONF['site_url'] . '/article.php?story=' . $sid);
$display .= '<a href="' . $properurl . '">' . $story_title . '</a><br>';
I didn't really test it but I believe that should work fine.
Yes I am mental.
21
21
Quote
Page navigation
All times are EST. The time is now 08:00 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content