51
exbanious
Re: Two Layouts?
  • 2005/3/3 2:46

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


you can use "themechanger" module.
just clone your original theme and name it something else.
make all the adjustments on that theme.

if you would like for the same blocks to appear in different places, depending on how adjustable your theme is and what you want to do, you may have to edit the block tags in your theme template to appear in different areas.
however, then all blocks set for that particular column will appear there as well.

hope that helps some....



52
exbanious
Re: A Simple News Block
  • 2005/3/3 2:22

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


i haven't really tried using this with news2, but you might
try changing the following code in news_all.php:

Quote:


$sql = "SELECT storyid, title, bodytext, topicdisplay, topicalign, published, counter FROM ".$xoopsDB->prefix("stories")." WHERE published < ".time()." AND published > 0 AND (expired = 0 OR expired > ".time().") ORDER BY ".$options[0]." DESC";




change ("stories") to ("stories2")

Quote:


$var_image = $xoopsDB->query("SELECT topicid FROM ".$xoopsDB->prefix("stories")." WHERE storyid=".$newsid."",1,0);
list ($patt_image) = $xoopsDB->fetchRow($var_image);
$var_image2 = $xoopsDB->query("SELECT topic_imgurl FROM ".$xoopsDB->prefix("topics")." WHERE topic_id=".$patt_image."",1,0);
list ($image_display) = $xoopsDB->fetchRow($var_image2);
$news['image_display'] = $image_display;

$block['stories'][] = $news;



also change ("stories") to ("stories2") and
("topics") to ("topics2")

like i said, i haven't tried this, but i should work....theoretically.



53
exbanious
Re: A Simple News Block
  • 2005/3/2 18:34

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


you might want to try "xf_newsmod_blocks"
find it in this thread:HERE

I found that i had to edit the "news_all.php" block to make it display the text and html the way i wanted it to.

Quote:


$hometext = $myts->displayTarea(substr($myrow['hometext'], 1, ($options[3] - 1), 1 ))."...";


i changed this to:


$hometext = substr($hometext, 0, ($options[3] - 1))."...";



NOTE: this will only affect the display if you opt to limit the amount of characters of the hometext to display.
also, i did this a while ago, and as far as i can remember, this is all that i changed, so with this in mind, keep a backup......

hope that helps.



54
exbanious
Re: Using different themes on different pages
  • 2005/2/28 18:07

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


You can use the ThemeChanger module, it will allow you to have different themes for the front page, and for each module. you can turn the theme selection box off in block administration.



55
exbanious
Re: text wrapping - news
  • 2005/2/26 22:22

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


you just need some spaces between your words. XOOPS can't break text in the middle of a word, it is treating it as one word.



56
exbanious
Re: In the recent news section
  • 2005/2/26 22:19

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


are you talking about the titles that appear in the recent news block for the news module?

there is a setting for character length in the block properties when you edit the block.



57
exbanious
Re: How do I change the url for the Register Now link?
  • 2005/2/23 8:33

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


sorry about that....
i have a link to the login page on my site, so sometimes i forget about the block.
you need to edit the "system_block_login.html" template in the main template folder.
pretty much the same code:
Quote:

<a href="<{$xoops_url}>/register.php"><{$block.lang_registernow}></a>



58
exbanious
Re: How do I change the url for the Register Now link?
  • 2005/2/22 18:23

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


Its in kind of a strange place...
its in your XOOPS language directory "user.php"

Quote:

define('_US_NOTREGISTERED','Not registered? Click <a href="register.php">here</a>.');



59
exbanious
Re: Where does this code tell IE to make gaps?
  • 2005/2/22 17:30

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


you can place code in your posts if you use the quote tags.
"quote" placed in brackets followed by "/quote" also in brackets, or you can use the quote icon in the formatting
area of the form.

as far as for your other question, in my experience, In IE, i have had to use margin="0". It seems IE has a default of like 5px or something if not specified.



60
exbanious
Changing Format of Article in News 1.2
  • 2005/2/20 3:43

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


For a certain project I am doing, I need to change the format of the news article page. I need for all articles posted before a certain date to appear one way, and any articles posted after that to look another way.


Here is the code i want to change:

Quote:


if ( trim($bodytext) != '' ) {
$articletext = explode("[pagebreak]", $bodytext);
$story_pages = count($articletext);

if ($story_pages > 1) {
include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
$pagenav = new XoopsPageNav($story_pages, 1, $storypage, 'page', 'storyid='.$storyid);
$xoopsTpl->assign('pagenav', $pagenav->renderNav());
//$xoopsTpl->assign('pagenav', $pagenav->renderImageNav());

if ($storypage == 0) {
$story['text'] = $story['text'].'<br /><br />'.$articletext[$storypage];
} else {
$story['text'] = $articletext[$storypage];
}
} else {
$story['text'] = $story['text'].'<br /><br />'.$bodytext;
}}




I want all articles before a certain date to appear like the above.


I would like for all articles after a certain date to appear as:



Quote:


if ( trim($bodytext) != '' ) {
$articletext = explode("[pagebreak]", $bodytext);
$story_pages = count($articletext);

if ($story_pages > 1) {
include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
$pagenav = new XoopsPageNav($story_pages, 1, $storypage, 'page', 'storyid='.$storyid);
$xoopsTpl->assign('pagenav', $pagenav->renderNav());
//$xoopsTpl->assign('pagenav', $pagenav->renderImageNav());

if ($storypage == 0) {
$story['text'] = $articletext[$storypage];
} else {
$story['text'] = $articletext[$storypage];
}
} else {
$story['text'] = "<br />" .$bodytext;
}}



i'm not much of a programmer, but i'm assumming i need to
write this into an "if" "else" statement, but, i am having a problem defining a date and an "if" statement that will use a set date.
then again, i might be completely off in my assumption....

i hope this question is clear enough..




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



Login

Who's Online

239 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 239


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