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, 380 guest(s) and 15 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Article: Admin-Not Italic Member-Italic [ ]
 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
Tim
Private
Private


Joined: Feb 09, 2003
Posts: 48

Location: Hegelsom, The Netherlands

PostPosted: Fri Mar 07, 2003 7:13 am Reply with quoteBack to top

When I, as Admin post a topic it doesn't get italic, but when a member does it says: "$Membername here!" writes ...blah.. blah
Does anybody know how to get rid of the italic text.. And i tried to search on
Code:
<i></i>
tags but that gives lots of results.. $topictext also.. Help!
Oh for the site: Click here!
Find all posts by TimView user's profileSend private messageSend e-mailVisit poster's website
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Fri Mar 07, 2003 8:24 am Reply with quoteBack to top

You need to look in your theme.php file (not all the themes have the italics)

Find:
Code:
/************************************************************/
/* Function themeindex()                                    */
/*                                                          */
/* This function format the stories on the Homepage         */
/************************************************************/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   $content = "$thetext$notes\n";
    } else {
   if($informant != "") {
       $content = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> ";
   } else {
       $content = "$anonymous ";
   }
   $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time $timezone ($counter "._READS.")";
    $tmpl_file = "themes/fiblack/story_home.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themearticle()                                  */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    $posted = ""._POSTEDON." $datetime "._BY." ";
    $posted .= get_author($aid);
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   $content = "$thetext$notes\n";
    } else {
   if($informant != "") {
       $content = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> ";
   } else {
       $content = "$anonymous ";
   }
   $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $tmpl_file = "themes/fiblack/story_page.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}


IF you only want to remove the italics for member submissions and not for the notes, then you need to remove the <i> and </i> before and after \"$thetext\" in each instance of
Code:
   $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";


If you want to remove the italics for the notes as well then you need to remove the same thing in each instance of
Code:
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
Find all posts by IACOJView user's profileSend private message
boonkwee
Corporal
Corporal


Joined: Feb 14, 2003
Posts: 74

Location: Singapore

PostPosted: Fri Mar 07, 2003 10:56 am Reply with quoteBack to top

Is it possible to remove the " marks as well?
Find all posts by boonkweeView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Fri Mar 07, 2003 10:57 am Reply with quoteBack to top

doesn't appear so no.

AI
Find all posts by ArtificialIntelView user's profileSend private message
boonkwee
Corporal
Corporal


Joined: Feb 14, 2003
Posts: 74

Location: Singapore

PostPosted: Fri Mar 07, 2003 11:13 am Reply with quoteBack to top

Really? That's a pity. Isn't it possible to present / format submitted news by non-admin to look like admin posts? (you can see pulse.englishdept.net for a quick sample on how that would make everything look better)
Find all posts by boonkweeView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Fri Mar 07, 2003 1:32 pm Reply with quoteBack to top

find this line:
Code:
 if ("$aid" == "$informant") {

and these lines:
Code:
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }

in function themearticle in ur /themes/%themename%/theme.php and delete them.

AI
Find all posts by ArtificialIntelView user's profileSend private message
Tim
Private
Private


Joined: Feb 09, 2003
Posts: 48

Location: Hegelsom, The Netherlands

PostPosted: Fri Mar 07, 2003 1:51 pm Reply with quoteBack to top

AI you'll get parse errors.. or i did st wrong..
Change
Code:
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
to
Code:
$content .= ""._WRITES.":<br>$thetext$notes\n";
    }
Find all posts by TimView user's profileSend private messageSend e-mailVisit poster's website
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Fri Mar 07, 2003 2:15 pm Reply with quoteBack to top

I didn't add the :<br> in mine and it works fine.

If you have specific users you want to be able to add news, you can set them to have access to the admin add story in your admin cp.

Then it formats the same as if you submit a story, but you don't get a notification that a story has been submitted and you don't approve it.
Find all posts by IACOJView user's profileSend private message
boonkwee
Corporal
Corporal


Joined: Feb 14, 2003
Posts: 74

Location: Singapore

PostPosted: Fri Mar 07, 2003 10:52 pm Reply with quoteBack to top

Thanks guys! It works pretty much the way I want it now. I didn't like the way submissions were italicised but I still wanted to retain the control of what gets posted. This works out just nicely for me.
Find all posts by boonkweeView user's profileSend private message
Tim
Private
Private


Joined: Feb 09, 2003
Posts: 48

Location: Hegelsom, The Netherlands

PostPosted: Sat Mar 08, 2003 12:06 am Reply with quoteBack to top

well just added the : and the < br > tag for example Rolling Eyes
Find all posts by TimView user's profileSend private messageSend e-mailVisit poster's website
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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.095 Seconds - 283 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::