-
AuthorPosts
-
fdr77 Friend
fdr77
- Join date:
- April 2011
- Posts:
- 104
- Downloads:
- 0
- Uploads:
- 39
- Thanks:
- 13
- Thanked:
- 3 times in 1 posts
May 14, 2011 at 6:50 pm #164007How can I change this string to tell to take the author’s name than the creator
/myroot/modules/mod_jabulletin/tmpl/default.php
<?php if ($showcreater) : ?>
<br/> <span class="createby"><?php echo $item->creater;?></span>I tried so
<?php if ($showcreater) : ?>
<br/> <span class="createby"><?php echo $item->creater->get("name");?></span>
but don’t workthangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
May 17, 2011 at 9:33 am #391594Hi fdr77!
Creator and Author are the same. Which field you want to get?
fdr77 Friendfdr77
- Join date:
- April 2011
- Posts:
- 104
- Downloads:
- 0
- Uploads:
- 39
- Thanks:
- 13
- Thanked:
- 3 times in 1 posts
May 17, 2011 at 6:33 pm #391666thangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
May 18, 2011 at 7:31 am #391760simply change the line 288 of helper.php in modulesmod_jabulletin from:
$lists[$i]->creater = isset($row->creater)?$row->creater:"";
to
$lists[$i]->creater = isset($row->created_by_alias)?$row->created_by_alias:"";
1 user says Thank You to thangnn1510 for this useful post
fdr77 Friendfdr77
- Join date:
- April 2011
- Posts:
- 104
- Downloads:
- 0
- Uploads:
- 39
- Thanks:
- 13
- Thanked:
- 3 times in 1 posts
May 18, 2011 at 12:31 pm #391818Thank you 🙂
fdr77 Friendfdr77
- Join date:
- April 2011
- Posts:
- 104
- Downloads:
- 0
- Uploads:
- 39
- Thanks:
- 13
- Thanked:
- 3 times in 1 posts
May 18, 2011 at 5:20 pm #391845wanting to do the same thing with ja news pro module?
change so in the
/myroot/modules/mod_janewspro/tmpl/default/blog_item.php
/myroot/modules/mod_janewspro/tmpl/linear/blog_item.php
/myroot/modules/mod_janewspro/tmpl/mobile/blog_item.php
??<?php if ($showcreator) : ?>
<span class="createby"><?php echo $row->creator->get("created_by_alias:");?></span>
Thanksthangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
May 19, 2011 at 9:18 am #391942<em>@fdr77 241228 wrote:</em><blockquote>wanting to do the same thing with ja news pro module?
change so in the
/myroot/modules/mod_janewspro/tmpl/default/blog_item.php
/myroot/modules/mod_janewspro/tmpl/linear/blog_item.php
/myroot/modules/mod_janewspro/tmpl/mobile/blog_item.php
??<?php if ($showcreator) : ?>
<span class="createby"><?php echo $row->creator->get("created_by_alias:");?></span>Thanks</blockquote>
Please change:
<?php if ($showcreator) : ?>
<span class="createby"><?php echo $row->creator;?></span>
<?php endif; ?>
to
<?php if ($showcreator) : ?>
<span class="createby"><?php echo $row->created_by_alias;?></span>
<?php endif; ?>AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 2 voices, and was last updated by thangnn1510 13 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
modify ja bullettin
Viewing 7 posts - 1 through 7 (of 7 total)