You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 63 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - changing function FormatStory [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
msimonds
Premium
Premium


Joined: Jul 11, 2003
Posts: 240

Location: Dallas, Texas

PostPosted: Sat Oct 18, 2003 8:43 pm Reply with quoteBack to top

My default theme uses just a theme.php. I have this

Code:
function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> $notes\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   echo "<font class=\"content\">$thetext$notes</font>\n";
    } else {
   if($informant != "") {
       $boxstuff = "<a href=\"userinfo-.html$informant\">$informant</a> ";
   } else {
       $boxstuff = "$anonymous ";
   }
   $boxstuff .= ""._WRITES." \"$thetext\"$notes\n";
   echo "<font class=\"content\">$boxstuff</font>\n";
   }
}


and when a story is submitted by someone it posts:
Quote:
Mike writes "



I want to change so the quotes are removed from the story and at the end it says

Quote:
Written By mike


mike being the $informant

can someone help me out!!! cannot figure this one out!!
Find all posts by msimondsView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
gschoper
Captain
Captain


Joined: Sep 16, 2003
Posts: 380


PostPosted: Sat Oct 18, 2003 9:28 pm Reply with quoteBack to top

I didn't test this but it should display about what you are looking for:

Code:
function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> $notes\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   echo "<font class=\"content\">$thetext$notes</font>\n";
    } else {
   if($informant != "") {
       $boxstuff = "$thetext$notes\n";
       $boxstuff .= "<BR> Written by <a href=\"userinfo-.html$informant\">$informant</a>";
   } else {
       $boxstuff = "$thetext$notes\n";
       $boxstuff .= "<BR> Written by $anonymous";
   }
   echo "<font class=\"content\">$boxstuff</font>\n";
   }
}

_________________
Image
http://nuke.schoper.net/
Find all posts by gschoperView user's profileSend private messageSend e-mailVisit poster's website
msimonds
Premium
Premium


Joined: Jul 11, 2003
Posts: 240

Location: Dallas, Texas

PostPosted: Sun Oct 19, 2003 9:33 am Reply with quoteBack to top

worked perfeclty, thanks so much!!!!

_________________
Founder
SportsRant.com
Find all posts by msimondsView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.186 Seconds - 174 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::