Results 1 to 11 of 11

Thread: How do i display by blog author link instead of author profile link?

  1. #1

    Default How do i display by blog author link instead of author profile link?

    Dear Brian,

    the module in question is the "latest blogs" at the top left of the site.

    After i used the search function i've learnt how to display the dynamic "whats new" module as a CMPS module.

    The problem i have right now is i want the module to display the "Entry By Author" as a link to the Authors Blog rather then the Authors vbulletin profile page.

    I've tried copying the code where it appears to work such as category, and replacing it in adv_dyna_entrybit_lean (which is the template im using) but it doesnt show up or work.
    PHP Code:
    <a href="$entry[membercatlink]rel="nofollow"><phrase 1="$vbphrase[entries_lwr]2="$entry[username]">$vbphrase[find_all_x_by_y]</phrase></a
    Any help is much appreciated. Cheers.

    A way to get rid of the horizontal table border line would be sweet too.
    Last edited by cowcowcow; 11-21-2011 at 09:56 PM.

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    You would need to change the link to point to "/blogs/browsecategory.php?do=member&entryuserid=$entry[userid]".
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

  3. #3

    Default

    Thanks so much brian, worked like a charm!

    One last question, is it possible to have the "whatsnew" module display similar to the vbadvanced "recent threads" module? I.e the blogs are sorted by last post so when a new comment is made, the blog moves to the top and an orange icon appears next to new comments that take u directly to the latest comment. I only mean the whatsnew module at the top left (www.sc2sea.com), the category listing is perfectly fine as it is and no need for bumps there.

    the only options i see in the CMS are to sort by random and by date which are both not ideal for me because all the other modules on the site works like the recent threads.

    Thanks once again Brian, its for ur great support that i was happy to buy this module!

  4. #4

    Default

    also is there a way to add the go to last post?

    when i insert this into another module template(like the articles mod by bannanalive it works) but it doesnt work with the dynamics "whats new" module

    PHP Code:
            <if condition="$mod_options['portal_threads_newpostarrow'] AND $show['gotonewpost']">
                <
    a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$thread[threadid]&amp;goto=newpost"><img alt="$vbphrase[go_to_first_new_post]src="$stylevar[imgdir_button]/firstnew.gif" border="0" class="inlineimg" /></a>
            </if> 
    am i editing the correct template adv_dyna_entrybit_lean?
    it seems i am!

    please help brian

  5. #5
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    Take a look through any of the 'adv_dyna_entrybit*' templates and you should find the code you need.
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

  6. #6

    Default

    that was what i was doing already, coudln't figure it out and still cant
    i realised even my artciles new comment doesnt seem to be displaying right, it gets dispalyed even after pple has viewed the lastest comment already

  7. #7
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    You would need to use something like this:
    Code:
    <a href="{vb:raw entry.lastposturl}"><img alt="" border="0" src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" title="{vb:rawphrase go_to_last_post}" /></a> {vb:rawphrase last_post_by}
    			<vb:if condition="$entry['lastpostuserid']">
    				<a href="{vb:raw vboptions.bburl}/{vb:link member, {vb:raw entry}, null, 'lastpostuserid', 'lastpostusername'}">{vb:raw entry.lastpostusername}</a>
    			<vb:else />
    				{vb:rawphrase guest}
    			</vb:if>
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

  8. #8

    Default

    my site is sc2sea.com you will understand immediately what i mean when you see it!

    Brian i've tried that and it doesnt work, i think its for vb 4.0
    the site im currertnly using is vb 3.8!!

    also its quite different from what i want...... i dont want just a link to the last post, but rather for it to be displayed ONLY if its a new post, similar to how the recentthreads module in vbadvanced work and this is the code for it.

    PHP Code:
     <a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$thread[threadid]&amp;goto=newpost"><img alt="$vbphrase[go_to_first_new_post]src="$stylevar[imgdir_button]/firstnew.gif" border="0" class="inlineimg" /></a
    when i tried pasting it in the dymanics section it doesnt work cause i assume they use different links as in not showthread etc but i dont know what else to put and its been bugging me for 2 months now!!

    thanks brian

  9. #9
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    Sorry, that code was for vB4. Try this for vB3:
    Code:
    				<if condition="$entry['lastpostuserid']">
    					<a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$entry[lastpostuserid]">$entry[lastpostusername]</a>
    				<else />
    					$vbphrase[guest]
    				</if>
    				<a href="$entry[lastposturl]"><img alt="" border="0" src="$stylevar[imgdir_button]/lastpost.gif" title="$vbphrase[go_to_last_post]" /></a>
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

  10. #10

    Default

    brian the code you give me works but as i mentioned it above it does something very different from what i want.

    i dont want just a link to the last post, but rather for it to be displayed ONLY if its a new post, similar to how the recentthreads module in your vbadvanced works and this is the code that you use there

    PHP Code:
     <a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$thread[threadid]&amp;goto=newpost"><img alt="$vbphrase[go_to_first_new_post]src="$stylevar[imgdir_button]/firstnew.gif" border="0" class="inlineimg" /></a
    but when i try pasting it in the dymanics section it doesnt work cause i assume they use different links as in not showthread etc but i dont know what else to put and its been bugging me for 2 months now!!

    thanks brian

  11. #11
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    I'm sorry, I thought you were asking about the "last post" button. Dynamics does not keep track of the last post a member read, so there's not going to be an easy way to do that.
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I display a certain users Blog on home?
    By dannykilla in forum Module & Modification Discussion & Requests
    Replies: 3
    Last Post: 03-16-2009, 10:48 PM
  2. Display Blog Stats and Online Members??
    By Xhaiden in forum "How Do I..." Questions
    Replies: 2
    Last Post: 02-09-2009, 07:39 PM
  3. Blog entry to display on CMPS page
    By LenB in forum "How Do I..." Questions
    Replies: 6
    Last Post: 08-31-2008, 03:10 AM
  4. Blog to display avatar picture
    By angkor408 in forum Module & Modification Discussion & Requests
    Replies: 1
    Last Post: 01-30-2008, 12:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •