Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Dawg
RavenNuke(tm) Development Team



Joined: Nov 07, 2003
Posts: 928

PostPosted: Thu Jul 05, 2007 5:24 am Reply with quote

Greetings All,
I just noticed a problem with my forums.

If I go to the forums - then the forums name - then the post in the title I get

site name - forums name - post title for the page title.

If I go to the post itself through my scrolling block all I get is

site name -

That makes not sence. Here is my dynamic titles that deals with the forums.....anyone have any idea what the problem could be?

Code:
if($name=="Forums"){ 

global $p,$t,$forum,$f;
$newpagetitle = "Site Name - Site Slogon";
    if($p) {
        $sql = "SELECT post_subject, post_id FROM ".$prefix."_bbposts_text WHERE post_id='$p'";
        $result = $db->sql_query($sql);
        $row = $db->sql_fetchrow($result);
        $title = $row[post_subject];
        $post = $row[post_id];

        $newpagetitle = "Site Name - $title";
    }
    if($t) {
        $sql = "SELECT topic_title, forum_id FROM ".$prefix."_bbtopics WHERE topic_id='$t'";
        $result = $db->sql_query($sql);
        $row = $db->sql_fetchrow($result);
        $title = $row[topic_title];
        $forum = $row[forum_id];

        $sql = "SELECT forum_name FROM ".$prefix."_bbforums WHERE forum_id='$forum'";
        $result = $db->sql_query($sql);
        $row = $db->sql_fetchrow($result);
        $forum = $row[forum_name];
        $newpagetitle = "Site Name - $forum $item_delim $title";
    }
    elseif($f) {
        $sql = "SELECT forum_name FROM ".$prefix."_bbforums WHERE forum_id='$f'";
        $result = $db->sql_query($sql);
        $row = $db->sql_fetchrow($result);
        $forum = $row[forum_name];
        $newpagetitle = "Site Name $item_delim $forum";
    }
}
 
View user's profile Send private message
Dawg







PostPosted: Thu Jul 05, 2007 5:33 am Reply with quote

If you need a link so you can see what is happening just let know.

Thanks for the help!!

Dawg
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Thu Jul 05, 2007 7:28 am Reply with quote

Yes, send me the link. I wrote the version that is in RN (well, much of the original code was already written), so I have the most familiarity with it ATM.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Dawg







PostPosted: Thu Jul 05, 2007 7:59 am Reply with quote

Montego,
Thank You for your help. I have sent you a PM.

Dawg
 
montego







PostPosted: Thu Jul 05, 2007 5:35 pm Reply with quote

Dawg, have not had a chance to look yet, but are you using my version of Dynamic Titles that is on my site? It is now at version 1.1.0.

The issue, I believe, without having had a chance to look at it in detail yet, is coming from the Quick Reply feature that is not setting the post Subject. It is being stored on the DB as blank.

My 1.1.0 version actually takes care of this by looking at previous forum posts until a subject can be found. You might want to give that a try.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©