| Author |
Message |
Tim
Private


Joined: Feb 09, 2003
Posts: 48
Location: Hegelsom, The Netherlands
|
Posted:
Fri Mar 07, 2003 7:13 am |
  |
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 tags but that gives lots of results.. $topictext also.. Help!
Oh for the site: Click here! |
|
|
     |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Fri Mar 07, 2003 8:24 am |
  |
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";
|
|
|
|
   |
 |
boonkwee
Corporal


Joined: Feb 14, 2003
Posts: 74
Location: Singapore
|
Posted:
Fri Mar 07, 2003 10:56 am |
  |
Is it possible to remove the " marks as well? |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Fri Mar 07, 2003 10:57 am |
  |
|
   |
 |
boonkwee
Corporal


Joined: Feb 14, 2003
Posts: 74
Location: Singapore
|
Posted:
Fri Mar 07, 2003 11:13 am |
  |
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) |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Fri Mar 07, 2003 1:32 pm |
  |
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 |
|
|
   |
 |
Tim
Private


Joined: Feb 09, 2003
Posts: 48
Location: Hegelsom, The Netherlands
|
Posted:
Fri Mar 07, 2003 1:51 pm |
  |
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";
} |
|
|
|
     |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Fri Mar 07, 2003 2:15 pm |
  |
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. |
|
|
   |
 |
boonkwee
Corporal


Joined: Feb 14, 2003
Posts: 74
Location: Singapore
|
Posted:
Fri Mar 07, 2003 10:52 pm |
  |
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. |
|
|
   |
 |
Tim
Private


Joined: Feb 09, 2003
Posts: 48
Location: Hegelsom, The Netherlands
|
Posted:
Sat Mar 08, 2003 12:06 am |
  |
well just added the : and the < br > tag for example  |
|
|
     |
 |
|
|