51
dickinsd
Re: Help removing the register button
  • 2005/12/4 2:29

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Check your templates.

Remember you can only make changes to a cloned template set, the default one does not offer an Edit option.

Go to Templates, in your cloned templates look for system, click list and then look for system_block_login.html click edit

You will see something like this:

Quote:
<form style="margin-top: 0px;" action="<{$xoops_url}>/user.php" method="post">
<{$block.lang_username}><br />
<input type="text" name="uname" size="12" value="<{$block.unamevalue}>" maxlength="25" /><br />
<{$block.lang_password}><br />
<input type="password" name="pass" size="12" maxlength="32" /><br />
<!-- <input type="checkbox" name="rememberme" value="On" class ="formButton" /><{$block.lang_rememberme}><br /> //-->
<input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />
<input type="hidden" name="op" value="login" />
<input class="formbutton" type="submit" value="<{$block.lang_login}>" /><br />
<{$block.sslloginlink}>
</form>
<a href="<{$xoops_url}>/user.php#lost"><{$block.lang_lostpass}></a>
<br /><br />
<a href="<{$xoops_url}>/register.php"><{$block.lang_registernow}></a>


Your links are:

<a href="<{$xoops_url}>/user.php#lost"><{$block.lang_lostpass}></a>
<br /><br />
<a href="<{$xoops_url}>/register.php"><{$block.lang_registernow}></a>


Remove/edit these links to achieve your desired results.

Dave



52
dickinsd
Re: Newbb and Adsense Code
  • 2005/12/3 19:09

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


You would make this change in the thread template.

You need to clone your default template before you can make changes to it.

Assuming you have a cloned template set go to the template manager and look for forum or whatever you have called the forum module on your site.
Click on the link that says List and then look for a template called newbb_thread.html and click edit.

Originally it will look something like this (I am using Newbb2)

Quote:
<!-- start comment post -->
<a id="forumpost<{$topic_post.post_id}>"></a>
<table class="outer" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom-width: 0px;">
<tr>
<th width="20%"> <div align="center">
<ul class="newbb_level1">
<li class="newbb_folder">
<div class="newbb_submenu"><strong><{$down}>&nbsp;<{$topic_post.poster_name}></strong></div>
<ul class="newbb_level2">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<th><{$personal}><{$topic_post.poster_name}></th>
</tr>
<{$topic_post.poster_userbar}>
<{if $viewer_is_admin == true and $topic_post.poster_ip}>
<tr>
<th><{$smarty.const._MD_TOPICOPTIONADMIN}></th>
</tr>
<tr>
<td class="head"><strong>IP: <{$topic_post.poster_ip}></strong> </td>
</tr>
<{/if}>
</table>
</ul>
</li>
</ul>
</div></th>

<th width="80%" align="left"><div class="comTitle"><{$topic_post.post_title}></div></th><th align="right"><div class="comTitle" align="right">#<{$topic_post.post_no}></div></th>
</tr>

<tr>
<td width="20%" class="odd" rowspan="2" valign="top">
<{if $topic_post.poster_uid != 0}>
<div class="comUserRankText"><{$topic_post.poster_rank_title}><br /><{$topic_post.poster_rank_image}></div>
<img class="comUserImg" src="<{$xoops_upload_url}>/<{$topic_post.poster_avatar}>" alt="" />
<div class="comUserStat"><span class="comUserStatCaption"><{$smarty.const._MD_JOINED}>:</span> <{$topic_post.poster_regdate}></div>
<div class="comUserStat"><span class="comUserStatCaption"><{$smarty.const._MD_FROM}></span> <{$topic_post.poster_from}></div>
<div class="comUserStat"><span class="comUserStatCaption"><{$smarty.const._MD_POSTS}>:</span> <{$topic_post.poster_postnum}></div>
<{if $groupbar_enable}>
<div class="comUserStat"> <span class="comUserStatCaption"><{$smarty.const._MD_GROUP}></span> <br /><{$topic_post.poster_groups}> </div>
<{/if}>
<div class="comUserStatus"><{$topic_post.poster_status}></div>
<{else}>
<div class="comUserRankText"><{$anonymous_prefix}><{$topic_post.poster_uname}></div>
<{/if}>
</td>

<td colspan="2" class="odd">
<div class="comText"><{$topic_post.post_text}>HERE</div>
<{if $topic_post.post_attachment}>
<div class="comText"><{$topic_post.post_attachment}></div>
<{/if}>
<{if $topic_post.post_edit}>
<p align="right"><small><{$topic_post.post_edit}></small></p>
<{/if}>
</td>
</tr>

<tr>
<td colspan="2" class="odd" valign="bottom">
<{if $topic_post.poster_sig}>
<div class="signature">
_________________<br />
<{$topic_post.poster_sig}>
</div>
<{/if}>
</td>
</tr>


<tr>
<td width="20%" class="foot"><div class="comDate"><span class="comDateCaption"><{$smarty.const._MD_POSTEDON}></span><{$topic_post.post_date}></div>
<{foreach item=abtn from=$topic_post.thread_action}> <a href="<{$abtn.link}>&post_id=<{$topic_post.post_id}>" target="_blank" title="<{$abtn.name}>"> <{$abtn.image}></a> <{/foreach}>
</td>
<td colspan="2" class="foot"><div align="left"><a href="#threadtop" title="<{$smarty.const._MD_UP}>"><{$p_up}></a></div>
<div align="right" width="80%"><{foreach item=btn from=$topic_post.thread_buttons}> <a href="<{$btn.link}>&post_id=<{$topic_post.post_id}>" title="<{$btn.name}>"> <{$btn.image}></a> <{/foreach}></div>
</td>
</tr>
</table>
<!-- end comment post -->

You should see about half way down the code above I wrote HERE This is where you would add your Adsense code.

However I think that I remember seeing that you should have no more than 3 instances of adsense on a single page AND of course too many adds will distract from the content of the forums so you may want to add something like this:

<{if $topic_post.post_no == 1}><center><BR>[b]GOOGLE CODE HERE[/b]</center><BR><{/if}>


I think there may be a FAQ giving this info on this site somewhere you may want to try doing a search for more information.

Dave

Edit:FAQ for adding Adsense code to Newbb or Cbb



53
dickinsd
Re: Does anyone know what determines the order of modules in User Profile?
  • 2005/12/3 16:56

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Thanks.

$criteria->setSort("weight");

Worked great!

Cheers for that one.

Dave



54
dickinsd
Changing a module - will this cause problems for the search engines?
  • 2005/12/3 16:27

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Hi.

I am planning on changing to a module that can offer a couple of extra features. However I already have 50 articles (there abouts) with another module.

I want to transfer about 45 of them to the new module and use the old module for specific articles.

I accept that if I just remove the old articles I will get loads of people that are unable to find the original content.

So what I have decided to do is remove the module from my main menu so that people can no longer get to it when they just visit the site, but keep all of the existing articles in their place. The module will still allow access to anonymous users etc so that any search engines that are pointing to articles or anyone that has favourites will still be able to get to the content.

My main question is will Mr Google and his friends have an issue with my site having 2 copies of certain content?

I don't really want to; but should I go through each of the existing articles and add a meta forwarder to the new article, that way all favourites and search engine links will get to the content they want, AND I will only have one copy of the material on the site?

Please share your thoughts.

Dave



55
dickinsd
Re: How can I search the user by using their log in name?
  • 2005/12/3 2:14

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Isn't username and login name the same thing?

Or is this some other field in XOOPS 2.2.x that seems to complicate more things than need be (I have an issue with making the real name required during the registration process...)

Dave

EDIT: oops I think you might have meant user ID, in which case the login name and the user ID (Number) are not the same - sorry.



56
dickinsd
Does anyone know what determines the order of modules in User Profile?
  • 2005/12/3 2:09

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


hi.

Can anyone tell me how XOOPS works out its module order when looking at a user profile?

For example a user profile may list 5 web links the user posted follwed by 5 forum post and then 5 news posts, how or why does XOOPS order these modules.

Does anyone know how I can re-order the modules so that I can dictate the order in which they will be displayed.

I simply consider some areas of the site to be more important than others, if someone looks at a users profile I want them to see that this user has contributed to important areas of the site before they see that the user posted a web link (example)

I have looked in the table prefix_modules and I can see that the order has something to do with this table, but making changes here causes undesirable results.

Any ideas?

Dave



57
dickinsd
Re: Articles v1.0 Has anyone got the pagebreak feature working?
  • 2005/12/1 15:47

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Thanks guys.

Problem turned out to be some template issue that I thought I had resolved, basically XOOPS has messed up and my templates are been either duplicated or not updated or whatever else it feels like doing to the templates.

I end up with several of the same template, but the template I actually want to use doesn't work.

Anyway, the reason I couldn't see the links for next page was because the template I was using did not containg the related <if> have now added missing info and all is well.

Thanks anyway

Dave



58
dickinsd
Articles v1.0 Has anyone got the pagebreak feature working?
  • 2005/12/1 0:24

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


I am using the Articles module from AndyM (Sirium.net).

I recnetly upgraded to the latest version and I have an article waiting to be published which has about 11 pages, previously I have just split the articles up and posted them seperately but this is time consuming so I was very happy to see the pagebreak feature in the newer versions of this module.

However when an article is published which contains [pagebreak] the article gets as far as the first [pagebreak] and just stops.

There are no links to other pages, no links to next etc.

I have asked at Sirium.net, but thought I might ask here as well in case anyone figured it out?

Dave



59
dickinsd
Re: My News Pages are no longer been crawled by the major search engines.
  • 2005/11/22 18:24

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


I did look at using phpsitemap (I think it was called) but was having trouble with it.

I tried using the google service which required python access, I ran the script and provided the rel. info. to google.

That was last night, so I guess I will have to give google a couple of days to see if that has made a difference.

Thanks for the suggestions Goober.

Dave



60
dickinsd
Re: My News Pages are no longer been crawled by the major search engines.
  • 2005/11/22 12:19

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Ok.

I am VERY sorry for suggesting that my upgrade to XOOPS 2.2.3 might be the reason.

I have checked for all news items that google has crawled for 2 of my sites, my problem seems to have come about once I hit about 200 news stories on both site, which was in about a month of each other.

Now I am not sure, but after scouring the web for a while, I think the problem is actually down to the number of news stories I have.

I read somewhere that Although Google DOES crawl dynamic pages (e.g.https://xoops.org/modules/newbb/reply.php?forum=20&topic_id=43832 ... ) Google will limit the number of pages it crawls because of something like Google do not want to crawl through a massive number of dynamic pages as the number of pages could mean that google would use all your bandwidth.

I will get a better description and link to the description if this is news to you.

ANYWAY...

I am wondering if the large number of news articles on my sites has caused the problem in that google did the first 200 and then gave up crawling because of the large number invloved (Both sites would have more than 400 news stories at the moment)

I should point out that I never set an expire date on a single news story. Could this also be a cause of the problem.

If I had set the pages to expire after say 30 days, would this mean less pages for google to crawl? Perhpas if I had done this would Google still crawl the new News pages?

Can anyone help me figure this out? Anyone got any possible suggestions?

Dave




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 27 »



Login

Who's Online

251 user(s) are online (172 user(s) are browsing Support Forums)


Members: 0


Guests: 251


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits