Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
Plasma
Regular
Regular



Joined: May 17, 2005
Posts: 66

PostPosted: Sat Sep 10, 2016 7:08 am Reply with quote

Many years back I used a module that allowed me to post news on the main page and it would auto post that news in the forum.. or maybe it was the other way.. lol. anyway, is there anything still available like that?
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1774

PostPosted: Sat Sep 10, 2016 10:30 am Reply with quote

Sorry but this makes no sense in each way. Both modules are totally different. On this way you would also create duplicated content which is not allowed in order to get SEO friendly results on google & co.

_________________
Github: RavenNuke 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Mon Sep 12, 2016 7:55 am Reply with quote

[ Only registered users can see links on this board! Get registered or login! ] has one for Nuke Evo or Raven. The install directions for both are included with his download.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
Plasma







PostPosted: Mon Sep 12, 2016 11:55 am Reply with quote

nuken wrote:
http://www.headshotdomain.net has one for Nuke Evo or Raven. The install directions for both are included with his download.



I think the V3 is what i use to run on my site. I'll check them out. Thank you.
 
corpse
Regular
Regular



Joined: Oct 15, 2007
Posts: 87

PostPosted: Tue Sep 13, 2016 12:34 pm Reply with quote

Plasma wrote:
nuken wrote:
http://www.headshotdomain.net has one for Nuke Evo or Raven. The install directions for both are included with his download.



I think the V3 is what i use to run on my site. I'll check them out. Thank you.

Yes, that module was made by Noto from clanthemes. Ped temporarily opened ClanThemes so I could retrieve some file and forum threads, and that was one of them.

V2 allows you to have a specific forum where you set the permissions to how you want them and any new topic you start in there, will be posted on the home page.
V3 has a little checkbox at the bottom that allows you to make any forum thread you, (the administrator), create, into a news article that will show up on the home page, so as long as you set the default home module to the "Forums_News" module.
 
View user's profile Send private message Send e-mail
Plasma







PostPosted: Tue Sep 13, 2016 1:50 pm Reply with quote

corpse wrote:
Plasma wrote:
nuken wrote:
http://www.headshotdomain.net has one for Nuke Evo or Raven. The install directions for both are included with his download.



I think the V3 is what i use to run on my site. I'll check them out. Thank you.

Yes, that module was made by Noto from clanthemes. Ped temporarily opened ClanThemes so I could retrieve some file and forum threads, and that was one of them.

V2 allows you to have a specific forum where you set the permissions to how you want them and any new topic you start in there, will be posted on the home page.
V3 has a little checkbox at the bottom that allows you to make any forum thread you, (the administrator), create, into a news article that will show up on the home page, so as long as you set the default home module to the "Forums_News" module.



I have V3 installed and working. Only issue is the image size. The response you gave from my other post worked, however, it does not carry over to what's added to the mainpage News. There isn't a style sheet for the forumnews mod, so would you know how I can correct the issue?

Btw, the theme I'm using I purchased from ClanThemes a while back. Is that site closed for good?
 
corpse







PostPosted: Tue Sep 13, 2016 4:10 pm Reply with quote

Plasma wrote:

I have V3 installed and working. Only issue is the image size. The response you gave from my other post worked, however, it does not carry over to what's added to the mainpage News. There isn't a style sheet for the forumnews mod, so would you know how I can correct the issue?

Btw, the theme I'm using I purchased from ClanThemes a while back. Is that site closed for good?


Do you have a link to that other post? I am not sure what you mean about the image size. May be something that needs to be edited in the module.
Yes, ClanThemes is shut down permanently. It was shut down to many factors, that's why I grabbed what i could and the most popular things that people requested or wanted.
 
Plasma







PostPosted: Wed Sep 14, 2016 12:20 pm Reply with quote

corpse wrote:
Plasma wrote:

I have V3 installed and working. Only issue is the image size. The response you gave from my other post worked, however, it does not carry over to what's added to the mainpage News. There isn't a style sheet for the forumnews mod, so would you know how I can correct the issue?

Btw, the theme I'm using I purchased from ClanThemes a while back. Is that site closed for good?


Do you have a link to that other post? I am not sure what you mean about the image size. May be something that needs to be edited in the module.
Yes, ClanThemes is shut down permanently. It was shut down to many factors, that's why I grabbed what i could and the most popular things that people requested or wanted.



bummer. i liked and bought many of their themes.


[ Only registered users can see links on this board! Get registered or login! ]

that's the link about the image size topic but I did not post the ForumNews image question there. basically after I added the code to the .css file you suggested, picture sizes in forum posts were limited to whatever size I set. The issue was when that forum post was also used for front page news, the image displayed was the original size, which if the image is too large, will totally mess up the theme spacing.

I looked through the ForumNews V3 files to see if I could find anything that would limit image sizes, but I could not. Would you know how I can correct this?
 
neralex







PostPosted: Wed Sep 14, 2016 1:10 pm Reply with quote

Plasma, do you have a link to an affected article which is is using this module on your website? It should be done easily with a CSS definition.
 
Plasma







PostPosted: Thu Sep 15, 2016 7:43 am Reply with quote

This is a screenshot of what is happening. The original image size dominates the front page when using ForumNews. It should be all aligned under the main header image.


Last edited by Plasma on Mon Oct 24, 2016 6:24 am; edited 2 times in total 
neralex







PostPosted: Thu Sep 15, 2016 1:33 pm Reply with quote

Yes I know what do you mean but I need a link to identify the parent css class. Smile You can send me the link via PM!
 
corpse







PostPosted: Fri Sep 16, 2016 10:35 am Reply with quote

I believe you can go into the style.css of the theme you are using and add in this:

css Code:
.posttext img {

max-width:400px;
max-height:400px;
}


The reason I did both width and height is sometimes you get some taller images that are not as wide. You can set those to whatever value you want. But by doing max-width and max-height, it will resize your image so it keeps in the same aspect ratio when being resized. I don't know if RN has the lightbox jQuery effect, but you could attach that to the image so people can still click on the time to see the full size image.
 
Plasma







PostPosted: Fri Sep 16, 2016 10:56 am Reply with quote

corpse wrote:
I believe you can go into the style.css of the theme you are using and add in this:

css Code:
.posttext img {

max-width:400px;
max-height:400px;
}




That did it.. Thank you sir Smile


corpse wrote:
I don't know if RN has the lightbox jQuery effect, but you could attach that to the image so people can still click on the time to see the full size image.


How can I find out if RN has this option?
 
corpse







PostPosted: Fri Sep 16, 2016 8:36 pm Reply with quote

Plasma wrote:

That did it.. Thank you sir Smile


n/p


Plasma wrote:
How can I find out if RN has this option?

Maybe neralex or nuken would be better to answer this. I have not used RN for many years now, since before I started using Evo. I had it installed as a test site a year+ ago, but I never dug into the code that much to see what they may have or not. I don't think it is there by default for I know at one time they said they wanted to keep the CMS as vanilla as they could. So, if that's the case, then you may need to write it into your site, which could be fairly easy to do, its just choosing the one that best suited for your needs. I say that because there are many versions of it, colorbox, lytebox, lightbox are just a few off the top of my head.
 
neralex







PostPosted: Sat Sep 17, 2016 5:01 am Reply with quote

I had never used this module but I guess its all based in the index.php. If yes then open the index.php of this module and find the include of the header.php.

find something like this:

php Code:
include_once('header.php');


add before:

php Code:
$style = '<style type="text/css">' . PHP_EOL

.'#cboxLoadedContent .posttext img {max-width: 100%; max-height: 100%;}' . PHP_EOL
.'</style>' . PHP_EOL;
addCSSToHead($style, 'inline');

$cbox_inline = '<script type="text/javascript">' . PHP_EOL
. '$(document).ready(function(){' . PHP_EOL
# Make ColorBox responsive
. '$.colorbox.settings.maxWidth = \'95%\';' . PHP_EOL
. '$.colorbox.settings.maxHeight = \'95%\';' . PHP_EOL
# ColorBox resize function
. 'var resizeTimer;' . PHP_EOL
. 'function resizeColorBox()' . PHP_EOL
. '{' . PHP_EOL
. ' if (resizeTimer) clearTimeout(resizeTimer);' . PHP_EOL
. ' resizeTimer = setTimeout(function() {' . PHP_EOL
. ' if ($(\'#cboxOverlay\').is(\':visible\')) {' . PHP_EOL
. ' $.colorbox.load(true);' . PHP_EOL
. ' }' . PHP_EOL
. ' }, 300);' . PHP_EOL
. '}' . PHP_EOL
# Resize ColorBox when resizing window or changing mobile device orientation
. '$(window).resize(resizeColorBox);' . PHP_EOL
. 'window.addEventListener("orientationchange", resizeColorBox, false);' . PHP_EOL
# start colorbox
. '$(\'.posttext img\').click(function() {' . PHP_EOL
. ' $(this).colorbox({' . PHP_EOL
. ' inline: true,' . PHP_EOL
. ' href: this,' . PHP_EOL
# close colorbox with a click on the image
. ' onComplete:function(result){' . PHP_EOL
. ' $(this).unbind().click($.colorbox.close);' . PHP_EOL
. ' }' . PHP_EOL
. ' });' . PHP_EOL
. '});' . PHP_EOL
. '});' . PHP_EOL
. '</script>' . PHP_EOL;
addJSToBody($cbox_inline, 'inline');


This code is using the colorbox addon which is included in RN. It will generate the colorbox in a responsive way with a extra-option to close the colorbox with a click on the image inside. And it shows the image with the full size but it will be reduced to 95% if the image is larger than your current screen size.
 
Plasma







PostPosted: Thu Oct 20, 2016 1:18 pm Reply with quote

When I add the ForumNews V3 module I'm getting the following error after I upload the edited files:

The error comes when I try and submit the new forum post..

Code:
Error in posting


DEBUG MODE

SQL Error : 1054 Unknown column 'forum_news' in 'field list'

INSERT INTO nuke_bbtopics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, forum_news, topic_vote) VALUES ('This is the message test', 3, 1476990844, 3, 0, 0, 1, 0)

Line : 227
File : functions_post.php


the files edited are:

constrants.php
postings.php
functions_post.php


the first instruction of the INSTALL-Raven.txt states:

Code:
## SQL: run this SQL query with phpmyadmin on your nuke database.

##----------------------------------------------------
ALTER TABLE nuke_bbtopics ADD forum_news tinyint(3) NOT NULL DEFAULT 0 AFTER topic_type;



The best I can tell I did this, however I'm not 100% sure.


Also, I'm not seeing the topic_title in this line

Code:
INSERT INTO nuke_bbtopics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, forum_news, topic_vote) VALUES ('This is the message test', 3, 1476990844, 3, 0, 0, 1, 0)


The topic title I put in as "This is a post test". It does not show up in the line above.

I really would like to get this working but I'm at a point where I need more help. If anyone has anything I could try, I'd really appreciate it.
 
corpse







PostPosted: Fri Oct 21, 2016 3:07 am Reply with quote

Plasma wrote:
When I add the ForumNews V3 module I'm getting the following error after I upload the edited files:

The error comes when I try and submit the new forum post..

Code:
Error in posting


DEBUG MODE

SQL Error : 1054 Unknown column 'forum_news' in 'field list'

INSERT INTO nuke_bbtopics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, forum_news, topic_vote) VALUES ('This is the message test', 3, 1476990844, 3, 0, 0, 1, 0)

Line : 227
File : functions_post.php


the files edited are:

constrants.php
postings.php
functions_post.php


the first instruction of the INSTALL-Raven.txt states:

Code:
## SQL: run this SQL query with phpmyadmin on your nuke database.

##----------------------------------------------------
ALTER TABLE nuke_bbtopics ADD forum_news tinyint(3) NOT NULL DEFAULT 0 AFTER topic_type;



The best I can tell I did this, however I'm not 100% sure.


Also, I'm not seeing the topic_title in this line

Code:
INSERT INTO nuke_bbtopics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, forum_news, topic_vote) VALUES ('This is the message test', 3, 1476990844, 3, 0, 0, 1, 0)


The topic title I put in as "This is a post test". It does not show up in the line above.

I really would like to get this working but I'm at a point where I need more help. If anyone has anything I could try, I'd really appreciate it.


Easy way to tell is to go into your phpMyAdmin and look up the table nuke_bbtopics and select the structure for it and see if you have the "forum_news". If not, then run that SQL. That error you posted is saying it is not there.
 
Plasma







PostPosted: Fri Oct 21, 2016 8:46 am Reply with quote

corpse wrote:


Easy way to tell is to go into your phpMyAdmin and look up the table nuke_bbtopics and select the structure for it and see if you have the "forum_news". If not, then run that SQL. That error you posted is saying it is not there.



It is there now.. Still getting this error:

Code:
Error in posting


DEBUG MODE

SQL Error : 1054 Unknown column '5100b28937' in 'field list'

INSERT INTO nuke_bbposts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig) VALUES (8014, 3, 3, 'test 10-21-16', 1477060245, 'aeda8d47', 1, 1, 0, 5100b28937)

Line : 241
File : functions_post.php



not sure if it matters, but my bbpost structure from the actual SQL looks like:

Code:
INSERT INTO `nuke_bbposts` (`post_id`, `topic_id`, `forum_id`, `poster_id`, `post_time`, `poster_ip`, `post_username`, `enable_bbcode`, `enable_html`, `enable_smilies`, `enable_sig`, `post_edit_time`, `post_edit_count`, `post_attachment`) VALUES

(11688, 2190, 3, 3, 1236364555, 'd06e5232', '', 1, 1, 1, 0, NULL, 0, 0),
 
Plasma







PostPosted: Mon Oct 24, 2016 7:24 am Reply with quote

I double checked my edits and found one mistake, but still getting this error:

Code:
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 0)' at line 1


INSERT INTO nuke_bbtopics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, forum_news, topic_vote) VALUES ('hhhhhhhhh', 3, 1477315330, 3, 0, 0, , 0)

Line : 227
File : functions_post.php






Another thing I found out is when posting in the forum, if I select "Homepage news" instead of "Normal", it works. It's only when "Normal", "Sticky" or "Announcement" are selected..

I'm still not able to pinpoint the source of the error. Anyone know what i can check?



Is the error because there isn't an entry for the "Forum_news" part => VALUES ('hhhhhhhhh', 3, 1477315330, 3, 0, 0, HERE, 0)
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©